home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 131 / XENIATGM131.iso / Goodies / I-WAR 2 Egde of Chaos - New SDK / IW2-EOC_Pog_Scripting_SDK.exe / include / stream.h < prev    next >
C/C++ Source or Header  |  2002-01-14  |  1KB  |  59 lines

  1. //
  2. // (c) 1999 Particle Systems Ltd. All Rights Reserved
  3. //
  4. // Stream.h
  5. //
  6. // API for the package FcSoundStreamingManager.
  7. //
  8. // Revision control information:
  9. //
  10. // $Header: /flux/packages/stream.h 4     9/04/01 12:03 Will $
  11. //
  12.  
  13. #include "Flux.h"
  14.  
  15. #ifdef FLUX_COMPILE
  16.  
  17. FLUX_DECLARE_EXTENSION(stream);
  18.  
  19. #ifdef FLUX_LIB
  20. #if _MSC_VER >= 1000
  21. #pragma comment( lib, "stream" )
  22. #endif // _MSC_VER >= 1000
  23. #endif
  24.  
  25. #else
  26.  
  27. uses String;
  28.  
  29. //
  30. // Streaming sound API
  31. //
  32.  
  33. /**
  34.  * Play a stream in a slot
  35.  */
  36. prototype Stream.Play( int slot, string url, bool fade, bool loop );
  37.  
  38. /**
  39.  * Stop a stream in a slot
  40.  */
  41. prototype Stream.Stop( int slot, bool fade );
  42.  
  43. /**
  44.  * Is the slot playing?
  45.  *
  46.  * @return TRUE if the slot is playing
  47.  */
  48. prototype bool Stream.IsPlaying( int slot );
  49.  
  50. /**
  51.  * Which stream is playing in a slot?
  52.  *
  53.  * @return The URL of the stream in the given slot.
  54.  */
  55. prototype bool Stream.IsPlayingURL( int slot, string url );
  56.  
  57.  
  58. #endif // FLUX_LIB
  59.